package org.lgiavedoni.android.franq.httpserver;

import java.util.Map;

import org.apache.velocity.VelocityContext;
import org.lgiavedoni.android.franq.core.httpserver.HttpPageController;
import org.lgiavedoni.android.franq.core.log.dao.LogDAO;
import org.lgiavedoni.android.franq.util.collection.CollectionUtils;

public class FooterPage extends HttpPageController {

	@Override
	public String getPath() {
		return "footer.html";
	}

	@Override
	public VelocityContext actionDefault(VelocityContext context) {

		context.put("logsList", CollectionUtils.getLast(LogDAO.inst.getAll(), 3));
		return context;

	}

	@Override
	public String getTemplateName(Map<String, String> params) {
		return "footer.html";
	}

}
